//
//  dllmain.c
//  keel_sys
//
//  Created by dexter on 12-6-2.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#include <stdio.h>
#include <CoreServices/CoreServices.h>
#include "keel_sys_NativeClock.h"

JNIEXPORT jdouble JNICALL Java_keel_sys_NativeClock_init
(JNIEnv * a, jobject b)
{
	return 1.0;
}

JNIEXPORT jlong JNICALL Java_keel_sys_NativeClock_getTime
(JNIEnv * a, jobject b)
{
	UnsignedWide v1; // [sp+18h] [bp-10h]@1
	
	Microseconds(&v1);
	
	jlong ret=v1.hi;
	ret<<=32;
	ret|=v1.lo;
	return ret;
}

JNIEXPORT void JNICALL Java_keel_sys_NativeClock_finalizeNative
(JNIEnv * a, jobject b)
{
	
}